package cn.wen.yinxiu.system.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.wen.yinxiu.common.toolkit.PageUtils;
import cn.wen.yinxiu.common.toolkit.Query;

import cn.wen.yinxiu.system.dao.ExceptionLogDao;
import cn.wen.yinxiu.system.entity.ExceptionLogEntity;
import cn.wen.yinxiu.system.service.ExceptionLogService;


@Service("exceptionLogService")
public class ExceptionLogServiceImpl extends ServiceImpl<ExceptionLogDao, ExceptionLogEntity> implements ExceptionLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ExceptionLogEntity> page = this.page(
                new Query<ExceptionLogEntity>().getPage(params),
                new QueryWrapper<ExceptionLogEntity>()
        );

        return new PageUtils(page);
    }

}